import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/get_token_entity.g.dart';

@JsonSerializable()
class GetTokenEntity {
	String? accessToken = '';
	int? expiresIn = 0;
	int? isInitialPassword = 0;
	String? refreshToken = '';
	String? tokenType = '';

	GetTokenEntity();

	factory GetTokenEntity.fromJson(Map<String, dynamic> json) => $GetTokenEntityFromJson(json);

	Map<String, dynamic> toJson() => $GetTokenEntityToJson(this);

	@override
	String toString() {
		return 'token:  $accessToken, expiresIn: $expiresIn, isInitialPassword: $isInitialPassword, refreshToken: $refreshToken, tokenType: $tokenType';
	}
}